<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UserRegistration.aspx.cs" Inherits="UserRegistration" Title="Volunteer Registration" %>
<%@ MasterType virtualpath="~/MasterPage.master" %>

<%@ Register Src="UserSkillsUserControl.ascx" TagName="UserSkillsUserControl" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
        <asp:LinqDataSource ID="DSGroups" runat="server" 
        ContextTypeName="OpenGivingDataContext" EnableDelete="True" 
        OrderBy="groupName" 
        TableName="Groups">
    </asp:LinqDataSource>


    <asp:ObjectDataSource ID="odsStates" CacheDuration="Infinite" TypeName="States" SelectMethod="GetAbbreviations" runat="server"></asp:ObjectDataSource>

    <asp:Label ID="ErrorLabel" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" OnCreatedUser="CreateUserWizard1_CreatedUser"
        EditProfileText="Edit your profile" EditProfileUrl="~/UserProfile.aspx" FinishDestinationPageUrl="~/Default.aspx"
        HeaderText="Become a volunteer!" LoginCreatedUser="True">
        <WizardSteps>
            <asp:WizardStep ID="WizardStep1" runat="server" Title="Contact Info">
                <asp:Label ID="lblName" runat="server" Text="First Name"></asp:Label>
                <asp:TextBox ID="txtFName" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label5" runat="server" Text="Last Name"></asp:Label>
                <asp:TextBox ID="txtLName" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label4" runat="server" Text="Address"></asp:Label>
                <asp:TextBox ID="txtAddr1" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label1" runat="server" Text="City"></asp:Label>
                <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label2" runat="server" Text="State"></asp:Label>
                <asp:DropDownList ID="ddlState" runat="server" DataSourceID="odsStates" AppendDataBoundItems="true">
                    <asp:ListItem Value=""></asp:ListItem>
                </asp:DropDownList>
                <br />
                <asp:Label ID="Label3" runat="server" Text="ZIP"></asp:Label>
                <asp:TextBox ID="txtPostalCode" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="lblMainPhone" runat="server" Text="Main Phone"></asp:Label>
                <asp:TextBox ID="txtMainPhone" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="lblGender" runat="server" Text="Gender"></asp:Label>
                <asp:DropDownList ID="ddlGender" runat="server">
                <asp:ListItem Text="" Value=" " Selected="True" />
                <asp:ListItem Text="Male" Value="M" />
                <asp:ListItem Text="Female" Value="F" />
                </asp:DropDownList>
                <br />
                <!--
                <asp:Label ID="lblBirthday" runat="server" Text="Birthday (MMDD)"></asp:Label>
                <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>
                -->
                <br />
                <asp:Label ID="lblEmployer" runat="server" Text="Employer"></asp:Label>
                <asp:TextBox ID="txtEmployer" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="lblGroup" runat="server" Text="Group Affiliation"></asp:Label>
                <asp:DropDownList ID="ddlGroup" runat="server" AppendDataBoundItems="true" DataSourceID="DSGroups">
                <asp:ListItem Text="None" Value="" Selected="True" />
                </asp:DropDownList>
                <br />
                <asp:CheckBox ID="cbAdmin" Text="TESTING" runat="server" />
            </asp:WizardStep>
            <asp:WizardStep ID="WizardStep2" runat="server" Title="Skillset">
                <uc1:UserSkillsUserControl ID="UserSkillsUserControl1" runat="server" />
            </asp:WizardStep>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" />
            <asp:CompleteWizardStep runat="server" />
        </WizardSteps>
    </asp:CreateUserWizard>
</asp:Content>
